package com.rfid.service.util;

import com.entitymapper.EntityMapper;
import com.entitymapper.EntityMapperImpl;
import com.entitymapper.ResultSetManager;

/**
 * 创建entityMapper对象
 * @author hhf
 */
public class MapperUtils {

	private static MapperUtils mapperInstance = new MapperUtils();
	private ResultSetManager rsm = null;
	public MapperUtils() {
		rsm = new ResultSetManager();
	}

	public static MapperUtils getInstance() {
		return mapperInstance;
	}

	public EntityMapper getMapper() {
		EntityMapper entityMapper = null;
		entityMapper = new EntityMapperImpl(rsm);
		entityMapper.configure();
		return entityMapper;
	}
}
